﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using SHKF.B2C.Hosted;
using SHKF.B2C.Model.Dto.Order;
using SHKF.B2C.Model.Entity.Order;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks; 

namespace SHKF.B2C.Mannage.Service.Controllers
{
    //[Route("[controller]")]
    //[ApiController]
    //public class MtpsController : BaseController
    //{
    //    private readonly OrderContentBLL orderContentBLL;

    //    public MtpsController(
    //        OrderContentBLL orderContentBLL,
    //        ILogger<ProductController> logger) : base(logger)
    //    {
    //        this.orderContentBLL = orderContentBLL;
    //    }

    //    /// <summary>
    //    /// 查询配送订单列表
    //    /// </summary>
    //    /// <param name="shopID"></param>
    //    /// <param name="status"></param>
    //    /// <param name="startDate"></param>
    //    /// <param name="endDate"></param>
    //    /// <returns></returns>
    //    [HttpGet("order/list")]
    //    public OrderListDto List(string shopID, string orderID, int status, DateTime startDate, DateTime endDate)
    //    {
    //        OrderListDto dto = new OrderListDto();
    //        try
    //        {
    //            List<OrderContentEntity> orderList = this.orderContentBLL.Query(shopID, orderID, status, startDate, endDate);
    //            dto.Data = orderList;
    //        }
    //        catch (Exception ex)
    //        {
    //            dto.SetException(ex);
    //        }

    //        return dto;
    //    }

    //}
}
